package com.fa4j.code.mate.model;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

@Data
@Schema(description = "模型")
public class CodeMateModel extends AbstractCodeMate {

    @Schema(description = "模型名称")
    private String name;

    @Schema(description = "模型类型")
    private CodeMateModelType type;

    @Schema(description = "表名")
    private String tableName;

    @Schema(description = "主键字段名")
    private Integer primaryFieldId;

    @Schema(description = "字段列表")
    private List<CodeMateField> fieldList;

    @Schema(description = "方法列表")
    private List<CodeMateMethod> methodList;

}
